﻿using System.ComponentModel.DataAnnotations;

namespace TimeProject.WebSite.ViewModels
{
    public partial class LoginViewModel : ViewModelBase
    {
        /// <summary>
        /// The username.
        /// </summary>
        [Required(ErrorMessage = "The username is required.")]
        [Display(Name = "Username")]
        public string Username { get; set; }

        /// <summary>
        /// The password.
        /// </summary>
        [Required(ErrorMessage = "The password is required.")]
        [DataType(DataType.Password)]
        [Display(Name = "Password")]
        public string Password { get; set; }

        /// <summary>
        /// Remember login?
        /// </summary>
        [Display(Name = "Keep me logged in")]
        public bool RememberMe { get; set; }

        public string ReturnUrl { get; set; }
    }
}
